package com.sybase.dao;

/*
	Author: Leo
	Creation Date: 27-7-2012
	Creation Time: 2:14 AM
*/

import java.sql.*;
import java.util.*;

public class GenericDAO {
	// Data member declaration
	StoredProcedureParameters spParameters;
	ResultSet rs;
	LowLevelDAO lowLvlDAO;
	
	protected GenericDAO() {
		spParameters = null;
		rs = null;
		lowLvlDAO = null;
	}
	
	protected ResultSet executeSimpleProcedure(Connection connection, String procedureName,
			Map<String, StoredProcedureParameters> inputParameters, Map<String, StoredProcedureParameters> outputParameters,
			int resultSetType, int concurrencyMode) throws SQLException {
		
		lowLvlDAO = new LowLevelDAO();
		rs = lowLvlDAO.executeSimpleProcedure(connection, procedureName, inputParameters, outputParameters, resultSetType, concurrencyMode);
			
		return rs;
	} // End of method 
	
} // End of class

// Scrolls
/*
ResultSet.TYPE_FORWARD_ONLY // ResultSetType
ResultSet.CONCUR_READ_ONLY // ConcurrencyMode
*/